package com.whminwei.edu.api.school.dto.fspn;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author wangy
 * @since 2024/4/30
 */
@Data
public class TchBuildingFspn {
    @JsonValue
    private List<ClasseRoomBo> classeList;

    public TchBuildingFspn() {
    }

    @JsonCreator
    public TchBuildingFspn(List<ClasseRoomBo> classeList) {
        this.classeList = classeList;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ClasseRoomBo {

        private String classroomId;

        /**
         * 教学楼id
         */
        private String tchBuildingId;

        /**
         * 教室位置
         */
        private String classeLocation;


        /**
         * 教学楼名称
         */
        private String tchBuildingName;

        /**
         * 教学楼简称/楼栋号
         */
        private String tchBuildingAlias;

        /**
         * 楼层号;教学楼内唯一，从1开始递增的自然数，最大值为该教学楼的总层数
         */
        private Integer floorNo;

        /**
         * 房间号;楼层内唯一，从1开始递增的自然数，最大值为该楼层的房间数
         */
        private Integer roomNo;

    }

}
